package bamin.com.bamindaijia.Activity;

import android.os.Bundle;
import android.text.TextUtils;
import android.view.View;
import android.widget.TextView;

import com.aiton.administrator.shane_library.shane.utils.VersionUtils;

import bamin.com.bamindaijia.R;

public class AboutActivity extends ZjbBaseActivity implements View.OnClickListener {

    private TextView mTv_version;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_about);
        init();
    }

    @Override
    protected void initData() {

    }

    @Override
    protected void initViews() {
        String currVersionName = VersionUtils.getCurrVersionName(this);
        if (TextUtils.isEmpty(currVersionName)) {
            mTv_version.setText("版本：1.0.0");

        } else {
            mTv_version.setText("版本："+currVersionName);

        }
    }

    @Override
    protected void setListeners() {
        findViewById(R.id.imageView_back).setOnClickListener(this);

    }

    @Override
    protected void initSP() {

    }

    @Override
    protected void initIntent() {

    }

    @Override
    protected void findID() {
        mTv_version = (TextView) findViewById(R.id.tv_version);
    }

    @Override
    public void onClick(View v) {
        switch(v.getId()){
            case R.id.imageView_back:
                finishTo();
                break;
        }
    }
}
